package mips.instruction;

import mips.Reg;
import mips.element.Instruction;

public class BEQZ extends Instruction {
    private Reg rs;
    private String offset;

    public BEQZ(Reg rs, String offset) {
        this.rs = rs;
        this.offset = offset;
    }

    public Reg getRs() {
        return rs;
    }

    public String getOffset() {
        return offset;
    }

    public String toString() {
        return "beqz\t" + rs + " " + offset;
    }
}
